﻿using System;

namespace YaAppoint.Rules
{
    public class RuleCreateDto
    {
        public RuleLevel Level { get; set; }

        public LogicType LogicType { get; set; } = LogicType.Required;

        public string Name { get; set; }

        /// <summary>
        /// C# 类型全程(带完整命名空间路径)
        /// </summary>
        public string TypeName { get; set; }

        public string? Script { get; set; }

        /// <summary>
        /// Json
        /// 条件表达式，基于“Vue Query Builder”组件生成的条件组合json
        /// </summary>
        public string? Expression { get; set; }

        public Guid? RuleGroupId { get; set; }

        public string? Description { get; set; }

        /// <summary>
        /// 优先级
        /// </summary>
        public long Order { get; set; } = 0;

        /// <summary>
        /// 活动
        /// </summary>
        public bool IsActive { get; set; } = true;

        public Guid? DepartmentId { get; set; }

        public Guid? DeviceTypeId { get; set; }

        public Guid? DeviceId { get; set; }


    }
}
